package com.eelpo.framework.socket.listener;

import com.eelpo.framework.socket.SocketRequest.MethodHolder;
import com.eelpo.framework.socket.session.SocketSession;

/**
 * Socket 请求监听器
 * 
 * @author <a href="mailto:whz-work@163.com">汪洪州</a>
 * 
 * @since 1.0 Create on May 30, 2012
 */
public interface SocketRequestListener {

	public void beforeOnDispatch(MethodHolder holder, Object[] parameters);

	public void errorOnDispatch(MethodHolder holder, Object[] parameters, Exception e);

	public void errorOnReceived(SocketSession socketSession, Exception exception);
}
